<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动元素的现象</title>
    <link rel="stylesheet" href="css/reset.css">
    <style type="text/css">
        div{
            /* width: 100px; */
            height: 150px;
            color: #000;
            /* display: inline-block; */
        }
        .left{
            float: left;
            background-color: lightyellow;
        }
        .center{
            background-color: lightcoral;
        }
        .right{
            /* float: right; */
            background-color: lightgreen;
        }
    </style>
</head>
<body>
    <!-- 浮动的现象:
            0.为了实现文字环绕
            1.脱离了标准文档流
            2. 浮动元素互相贴靠
            3.浮动元素有收缩现象
    -->
    <div class="left">左边的盒子</div>
    <div class="center">中间的盒子</div>
    <div class="right">右边的盒子</div>
</body>
</html>